﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DeRepairRegister.aspx.cs"
    Inherits="DeRepairRegister" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />

    <script src="js/date.js" type="text/javascript" language="javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="842" border="0" cellpadding="0" cellspacing="0" align="center">
            <tr style="color: blue; font-size: 14px;">
                <td style="height: 14px; width: 502px;">
                    <img src="images/ADD.gif" width="14px" height="14px" />设备送修管理--&gt;设备送修登记
                </td>
            </tr>
            <tr style="color: blue; font-size: 14px;">
                <td style="height: 14px; width: 570px;" colspan="2">
                    <br />
                    使用人：&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="DeviceName" runat="server" Width="115px"></asp:TextBox>
                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="使用人不能为空!"
                        Width="101px" ControlToValidate="DeviceName"></asp:RequiredFieldValidator>--%>
                    &nbsp;&nbsp;所属部门：<asp:DropDownList ID="DeviceDpt" runat="server" DataSourceID="DeviceDptDataSource"
                        DataTextField="departmentName" DataValueField="departmentId" Width="120px">
                    </asp:DropDownList>
                    &nbsp;故障类型：<asp:DropDownList ID="ddlErrType" runat="server" DataSourceID="DeviceErrTypeSource"
                        DataTextField="errTypeName" DataValueField="errTypeId" Width="120px">
                    </asp:DropDownList>
                    &nbsp;
                    <br />
                    <br />
                    送修时间：<asp:TextBox ID="txtWHSJ" runat="server" MaxLength="20" Width="115px" onfocus="javascript:HS_setDate(this,'btnSelect');"></asp:TextBox>
                    <asp:Button ID="btnSelect" runat="server" Style="display: none" />
                    &nbsp;设备型号：<asp:TextBox ID="DeviceModel" runat="server" Width="115px"></asp:TextBox>&nbsp;
                    设备编号：<asp:TextBox ID="DeviceSerialNumber" runat="server" Width="115px"></asp:TextBox>&nbsp;<br />
                    <br />
                    资产编号：<asp:TextBox ID="deviceNumber" runat="server" Width="115px"></asp:TextBox>&nbsp;
                    &nbsp;送修地点：<asp:TextBox ID="txtReStation" runat="server" Width="115px"></asp:TextBox>
                </td>
            </tr>
            <tr style="color: blue; font-size: 14px;">
                <%--<td colspan="2" style="height: 61px" valign="top"></td>--%><td valign="middle">
                    <br />
                    详细情况：<asp:TextBox ID="DeviceMemo" runat="server" Height="80px" Width="400px" TextMode="MultiLine"></asp:TextBox>
                </td>
                <%--<td style="height: 61px"></td>--%>
            </tr>
            <tr style="color: blue; font-size: 14px;">
                <td colspan="2" style="height: 18px" align="center">
                    <br />
                    <asp:Button ID="Btn_Add" runat="server" Text="添加" OnClick="Btn_Add_Click" />&nbsp;
                    <input type="button" id="Button1" value="取消" onclick="location.href=location.href;" />
                </td>
            </tr>
        </table>
        <asp:SqlDataSource ID="DeviceDptDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="SELECT [departmentId], [departmentName] FROM [departmentInfo]">
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="DeviceErrTypeSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="SELECT [errTypeId], [errTypeName] FROM [errTypeInfo]"></asp:SqlDataSource>
    </div>
    </form>
</body>
</html>
